<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="">
    <script src="./node_modules/vue/dist/vue.js"></script>
  </head>
  <body>
    <div id="app">
      <p>{{name}}---{{age}}</p>
    </div>
    <script>
      Vue.mixin({
        data () {
          return {
            name: '小明'
          }
        },
        methods: {
          say () {
            console.log('-----say-hello');
          }
        }
      })
      new Vue({
        el: '#app',
        data() {
          return {
            age: 1622
          }
        },
        mounted () {
          this.say();
        }
      })
    </script>
  </body>
</html>